/*
 * CommandFiger.h
 *
 *  Created on: 2 janv. 2012
 *      Author: jeddi
 */

#ifndef COMMANDFIGER_H_
#define COMMANDFIGER_H_
#include "Command.h"
#include "CommandRobot.h"

class CommandFiger: public Command, public CommandRobot {

public:
	static CommandFiger maCmd;

	CommandFiger(Robot*rob=NULL,string d=(string)"FIGER") : CommandRobot(rob), Command(d) {
	}

	CommandFiger* constVirtual(Robot *rob) {
		return new CommandFiger(rob);
	}
	CommandFiger(string str):Command(str),CommandRobot(){}
	void executer() {
		r->figer();
	}
	void annuler() {
		r->repartir();
	}

};


#endif /* COMMANDFIGER_H_ */
